package com.hlkj.baojin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.entity
 * @description:
 * @date 2018/12/22 10:44
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */
@ApiModel
@Getter
@Setter
public class PasswordSet {

    @NotBlank(message = "账号不可为空")
    @ApiModelProperty("账号")
    private String username;

    @NotBlank(message = "验证码不可为空")
    @ApiModelProperty("验证码")
    private String code;

    @NotBlank(message = "密码不可为空")
    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("旧密码")
    private String oldPassword;

    public PasswordSet() {
    }
}
